package model;

import java.sql.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dao.insert;
import dao.newDB;

public class ProjectManager
{
	public String InsertMessage(Connection connection, HttpServletRequest request,HttpServletResponse response) throws Exception {
		String name = null;
		//String alamat = null;
		//String join=null;
		try {
			name = request.getParameter("name");
			//alamat = request.getParameter("alamat");
			if(name != null && name !="" && name.length()>0) {
				insert project = new insert();
				//newDB project = new newDB();
				name = project.InsertMessage(connection, request, response);
			}
		} catch (Exception e) {
			throw e;
		}
		return name;
	}
}